package com.ccblife.third.msagent.msagentfeign.login;

import org.springframework.stereotype.Component;

/****
 * 登录用户参数
 */
@Component
public class LoginParam {
    /***
     * 租户
     */
    private  String tenant;
    /**
     * 参与者
     */
    private String  partId;
    /**
     *
     * 参与者版本
     */
    private String partVersion;
    /**
     * 登录用户
     */
    private String loginUser;
    /**
     * 登录密码
     */
    private  String loginpassword;



    public  static  String   token;

    private static class SingletonClassInstance{
          private static final LoginParam instance=new LoginParam();
     }

    //方法同步，调用效率低
    public static  LoginParam getInstance(){
        return SingletonClassInstance.instance;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getPartId() {
        return partId;
    }

    public void setPartId(String partId) {
        this.partId = partId;
    }

    public String getPartVersion() {
        return partVersion;
    }

    public void setPartVersion(String partVersion) {
        this.partVersion = partVersion;
    }

    public String getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(String loginUser) {
        this.loginUser = loginUser;
    }

    public String getLoginpassword() {
        return loginpassword;
    }

    public void setLoginpassword(String loginpassword) {
        this.loginpassword = loginpassword;
    }

    private LoginParam() {
    }

    public void refresh(){
        System.out.println(this.loginpassword);
    }
}
